import request from "@/utils/request";

//查询次行程订单信息
export const getOrderInfoList = ( pageNum,pageSize,status ) => {
	console.log("pageNum",pageNum,"pageSize",pageSize,"status",status);
	return request({
		url : '/travel/order/getOrderInfoList',
		method : 'get',
		data : {pageNum,pageSize,status}
	})
}

export const getOrderInfoById = (orderId) => {
	return request({
		url : `/travel/order/getOrderInfoById/${orderId}`,
		method : 'get'
	})
}

export const getQrCode = (ticketId) => {
	return request({
		url : `/travel/order/createQrCode`,
		method : 'post',
		data:{ ticketId }
	})
}

export const getUpdateQrCode = (data) => {
	return request({
		url : '/travel/order/updateStatusByQrCode',
		method : 'post',
		data
	})
}

export const getContracInfo = (id) => {
	return request({
		url : `/travel/order/getContractInfo/${id}`,
		method : 'get'
	})
}